//
//  MyBusinessTableView.m
//  DaMaoMall
//
//  Created by 周影杰 on 16/7/26.
//  Copyright © 2016年 daMao-wally. All rights reserved.
//

#import "MyBusinessTableView.h"
#import "MyBusinessTableViewCell.h"
@interface MyBusinessTableView () <UITableViewDelegate,UITableViewDataSource>


@end

@implementation MyBusinessTableView
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
    if (self = [super initWithFrame:frame style:style]) {
        self.delegate = self;
        self.dataSource = self;
        self.rowHeight = 50;
    }
    return self;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 30;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    MyBusinessTableViewCell *businessCell = [tableView dequeueReusableCellWithIdentifier:@"MyBusinessTableViewCell"];
    if(businessCell == nil) {
        businessCell = [[[NSBundle mainBundle]loadNibNamed:@"MyBusinessTableViewCell" owner:self options:nil] lastObject];
    }
    businessCell.titleLabel.text = [NSString stringWithFormat:@"%@%@",@"蓝星",self.title];
   // businessCell.callImageVIew.image = GetImage(@"add");
    return businessCell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

@end
